package com.taxinfo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.taxinfo.pojo.dto.SubMatchingDto;
import com.taxinfo.pojo.vo.SubMatching;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wanghy
 * @since 2025-01-20
 */
@Repository
public interface SubMatchingMapper extends BaseMapper<SubMatching> {
    /**
     * 查询所有数据
     * @return
     */
    List<SubMatchingDto> selectAllData(@Param("categoryName") String categoryName);
    List<SubMatchingDto> selectDataBySelect(@Param("compSubName") String compSubName, @Param("subName") String subName, @Param("switchFlg")String ifMatch, @Param("category") String category ) ;

    void deleteAll(@Param("category") String category);

    List<SubMatchingDto> selectAllDataByAsset(@Param("categoryName") String categoryName);

    List<SubMatchingDto> selectAllDataByStatus(@Param("status")  String status);
}
